Skip to content

xuchunyang/eshell-git-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 

Repository files navigation

eshell-git-prompt https://melpa.org/packages/eshell-git-prompt-badge.svg https://stable.melpa.org/packages/eshell-git-prompt-badge.svg

This package provides some themes of Emacs Shell (Eshell) prompt.

Usage

In Eshell, type use-theme to list and preview available themes, then type use-theme name to choose a theme.

./img/eshell-git-prompt-usage.png

You can also choose a theme in your init file by using eshell-git-prompt-use-theme, then Eshell will use theme at the startup. For example, put the following in you init file

(eshell-git-prompt-use-theme 'powerline)

Recover

(Just in case some theme breaks your Eshell)

To recover the Eshell default prompt, type

$ use-theme default

or M-x eshell-git-prompt-use-theme RET default RET.

How does this package work?

You can customize Eshell’s prompt via something like the following

(setq eshell-prompt-function (lambda () "A simple prompt." "$ ")
      eshell-prompt-regexp    "^$ ")

this package uses the same way.

About

Some Eshell prompts for Git users

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published